import allure
from page_base.page_base import Base
# from page_element.el_A3mall import *
from page_element.roncoo_dz import *
from page_object.roncoo_login import RoncooLogin
from utils.timer import sleep
import logging

#对账批次列表
class RoncooDZ(RoncooLogin):
    def dzpc_list(self):
        self.roncoo_login()
        sleep(3)
        self.click(dz_pe.dzmenu_loc)
        sleep(2)
        self.click(dz_pe.dzpx_loc)
        self.click(dz_pe.dzzd_loc)
        sleep(2)
        self.select_by_visible_text(dz_pe.year_select_loc,'2024')
        sleep(2)
        self.select_by_visible_text(dz_pe.month_select_loc,'十二月')
        self.click(dz_pe.day_elect_loc)
        sleep(4)
        self.click(dz_pe.sure_loc)
        sleep(2)
        self.click(dz_pe.search_btn)
        with allure.step('验证对账信息查询成功'):
            dy =self.text(dz_pe.dy)
            logging.info(dy)
            assert  '2' in str(dy),'断言存在两条对账数据成功'














